home *** CD-ROM | disk | FTP | other *** search
- 10 n1$="mastertext t3":n2$="mastertext t4":n3$="formular f"
- 15 n4$="tabulatoren b":u=8:d=0
- 60 print "bitte master-text 128 disk in laufwerk 8einlegen und taste druecken"
- 65 poke198,0:wait 198,1
- 70 for ix=1to4:
- 80 if ix=1then n$=n1$:p=896
- 85 if ix=2then n$=n2$:p=53248
- 90 if ix=3then n$=n3$:p=1024
- 95 if ix=4then n$=n4$:p=1792
- 110 v=16: q=32: f=256: n$=left$(n$,v)
- 120 h$="0123456789abcdef": z$=chr$(0)
- 130 t$=right$(str$(d),1): open 1,u,15,"i"+t$: gosub 620
- 140 t$=t$+":"+n$: open 2,u,2,t$+",p,r"
- 150 input#1,e,m$,j,k: if e=0 then 240
- 160 close 1: close 2: print " programm ";n$;
- 170 if e=62 then print " nicht gefunden ": goto 200
- 180 if e=64 then print " falscher filetyp": goto 200
- 190 print " disk read-error";e: end
- 200 for j=1 to 2000: next: goto 90
- 210 j=int(c/v): k=c-j*v
- 220 m$=m$+mid$(h$,j+1,1)+mid$(h$,k+1,1)
- 230 return
- 240 get#2,a$,b$: if st then 190
- 250 close 2: close 1: m$=""
- 260 a=asc(a$+z$): b=asc(b$+z$)
- 270 c=b: gosub 210: c=a: gosub 210
- 280 print"die startadresse von ";n$;" ist: ";
- 290 print"hexadezimal: ";m$;" dezimal: ";b*f+a
- 300 print"und wird geaendert auf dezimal: ";p
- 340 b=int(p/f): a=p-b*f: p$=chr$(a)+chr$(b): m$=""
- 350 c=b: gosub 210: c=a: gosub 210
- 360 print " hex: ";m$;" decimal: ";b*f+a
- 390 j=len(n$): if j=v then 410
- 400 for x=j+1 to v:n$=n$+chr$(160):next
- 410 open 1,u,15: open 2,u,2,"#"
- 420 gosub 620: t=18: s=1
- 430 print#1,"u1:";2;d;t;s: gosub 620
- 440 print#1,"b-p:";2;0: get#2,a$,b$
- 450 t=asc(a$+z$): s=asc(b$+z$): h=2
- 460 print#1,"b-p:";2;h: get#2,t$
- 470 c=asc(t$+z$): if c<>130 then 510
- 480 get#2,a$,b$: f$="": for x=1 to v
- 490 get#2,t$: f$=f$+t$: next
- 500 if f$=n$ then 530
- 510 h=h+q: if h<f then 460
- 520 goto 430
- 530 a=asc(a$+z$): b=asc(b$+z$)
- 540 print#1,"u1:";2;d;a;b: gosub 620
- 550 print#1,"b-p:";2;2: print#2,p$;
- 560 print#1,"u2:";2;d;a;b: gosub 620
- 570 close 2: gosub 620: close 1
- 600 next ix
- 610 print"fertig! mastertext kann nun gestartet werden":end
- 620 input#1,e,m$,j,k:if e=0 then return
- 630 print " error: ";e;m$;j;k
- 640 close 2: close 1: end
-